import Vue from "vue";
import axios from "axios";

import App from "./App";
import router from "./router";
import store from "./store";

import BiliGiftStyleUtil from "./utils/BiliGiftStyleUtil";
BiliGiftStyleUtil.load();

if (!process.env.IS_WEB) Vue.use(require("vue-electron"));
Vue.prototype.axios = axios;
Vue.config.productionTip = false;

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI, { size: "small" });

import MyHeader from "./components/MyHeader.vue";
Vue.component("my-header", MyHeader);
import MessageList from "./components/messageList/MessageList.vue";
Vue.component("message-list", MessageList);
import SendMsg from "./components/sendMsg/SendMsg.vue";
Vue.component("send-msg", SendMsg);

/* eslint-disable no-new */
new Vue({
	components: { App },
	router,
	store,
	template: "<App/>",
}).$mount("#app");
